<?php
/** 初始化项目 */
require '../../app/app.php';
/** 初始化数据库 */
use app\util\Mysql;
$database = Mysql::init();

if(!empty($_SESSION['imgurl']) && $_SESSION['username']!="" ){
    $su=array(
        "data"=>1,
        "username"=>$_SESSION['username'],
    );
    echo json_encode($su);
}else{
    $su=array(
        "data"=>0,
    );
    echo json_encode($su);
}
?>